/**
 * @filename:${entityName}Service ${createTime}
 * @project ${project}  ${version}
 * Copyright(c) 2018 ${author} Co. Ltd.
 * All right reserved.
 */
package ${serviceUrl};

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.yz.base.boot.entity.AppPage;
import ${entityUrl}.${entityName};

/**
 * ${entityComment}—SERVICE.
 *
 * @author <a href="mailto:${email}">${author}</a>
 * @date ${createTime}
 * @since ${version}
 **/
public interface ${entityName}Service {

	/**
	 * 查询${entityComment}对象.
	 *
	 * @param id
	 * @return ${entityName}
	 */
	public ${entityName} selectByPrimaryKey(${idType} id);

	/**
	 * 删除${entityComment}对象.
	 *
	 * @param id
	 * @return int
	 */
	public int deleteByPrimaryKey(${idType} id);

	/**
	 * 添加${entityComment}对象.
	 *
	 * @param ${objectName}
	 * @return int
	 */
	public int insertSelective(${entityName} ${objectName});

	/**
	 * 修改${entityComment}对象.
	 *
	 * @param ${objectName}
	 * @return int
	 */
	public int updateByPrimaryKeySelective(${entityName} ${objectName});

	/**
	 * 查询${entityComment}集合.
	 *
	 * @param ${objectName}
	 * @return List<${entityName}>
	 */
	public List<${entityName}> query${entityName}List(${entityName} ${objectName});

	/**
	 * 分页查询${entityComment}.
	 *
	 * @param page
	 * @return PageInfo<${entityName}>
	 */
	public PageInfo<${entityName}> get${entityName}BySearch(AppPage<${entityName}> page);
}
